<?php

namespace Tbf\Bundle\SequenceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * 序列生成表,使用mysql的自增主键,获取自增id
 * Sequence
 *
 * @ORM\Table(name="tbf_sequence")
 * @ORM\Entity
 */
class TbfSequence
{
    /**
     * @var integer
     * @ORM\Column(name="current", type="integer", nullable=false, options={"unsigned"=true})
     */
    private $current;

    /**
     * @var string
     * @ORM\Column(name="name", type="string", length=255, nullable=false, unique=true, options={"default"=""})
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="NONE")
     */
    private $name = '';
}
